<?php



namespace app\interfaces\model;



use think\Model;



class Shop extends Model

{

    public function goods()

    {

        return $this->hasMany('ShopGoods', 'member_id', 'member_id')->where('state',1)->field('id,thumb_img,state,price,member_price')->order('sort', 'desc')->limit('4');

    }

}

